
// xml_tinyDlg.h : header file
//

#pragma once
#include "tinyxml.h"
#include "tinystr.h"

// Cxml_tinyDlg dialog
class Cxml_tinyDlg : public CDialogEx
{
// Construction
public:
	Cxml_tinyDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_XML_TINY_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	CImageList m_ImageList;
	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();
	afx_msg void OnTvnSelchangedTree1(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnBnClickedButton1();
	CTreeCtrl m_tree;
	afx_msg void OnBnClickedButton2();
	int XmlToTree(TiXmlElement * xml_element, HTREEITEM tree);
};
